package com.lh.createData.service.Impl;

import com.lh.createData.dao.MenuAuthorityMapper;
import com.lh.createData.model.InPutParam.MenuAuthorityInParam;
import com.lh.createData.service.MenuAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author ：梁昊，后端工程师：梁昊
 * @create 2021-07-20 14:13
 * @function
 * @editLog
 */
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Service
public class MenuAuthorityServiceImpl implements MenuAuthorityService {
    @Autowired
    MenuAuthorityMapper menuAuthorityMapper;

    @Override
    public int deleteMenuAuthorityByCreateTime(MenuAuthorityInParam menuAuthorityInParam) {
        return menuAuthorityMapper.deleteMenuAuthorityByCreateTime(menuAuthorityInParam);
    }

    /**
     * 增加菜单功能点击次数
     *
     * @param menuAuthorityInParam com.lh.createData.model.InPutParam.MenuAuthorityInParam
     * @return 影响条数
     */
    @Override
    public int insertMenuAuthority (MenuAuthorityInParam menuAuthorityInParam) {
        return menuAuthorityMapper.insertMenuAuthority(menuAuthorityInParam);
    }
}
